using System.Globalization;
using System.Windows.Data;

namespace Koala.Pro.Helpers;

public class FormIdToNameConverter : IValueConverter
{
    public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
    {
        if (value == null || string.IsNullOrEmpty(value.ToString()) || value.ToString() == "0")
        {
            return "所有表单";
        }
        //return AppItemsUtil.GetFormName(value.ToString());
        return "TODO";
    }

    public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
    {
        throw new NotImplementedException();
    }
}
